package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.enums.BaseTeamEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class TrainingOrganizationRegister implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private Integer applyUserId;

    private String applyUserName;

    private String name;

    private String province;

    private String city;

    private String address;

    private String legalPerson;
    private String channelCode;
    @NotNull(message = "手机号不能为空")
    private String tel;

    @NotNull(message = "验证码不能为空")
    private String validateCode;

    private String email;

    @NotNull(message = "密码不能为空")
    private String password;

    private String license;

    private Integer applyStatus;

    private String creditCode;

    private String teamCode = BaseTeamEnum.BASE.getValue();

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

}